package com.oig.sys.workflow.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.GenerationType;
import javax.persistence.GeneratedValue;
import java.io.Serializable;


/**
 * @author wuxl
 * 表单配置
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_flow_form")
public class TbFlowForm implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 */
	@Column(name = "flow_config_id")
	private Integer flowConfigId;

	/**
	 */
	@Column(name = "field_id")
	private String fieldId;

	/**
	 */
	@Column(name = "field_name")
	private String fieldName;

	/**
	 */
	@Column(name = "field_type")
	private String fieldType;

	/**
	 */
	@Column(name = "required")
	private String required;

	/**
	 */
	@Column(name = "default_value")
	private String defaultValue;

	/**
	 * 备选项 json格式: [{"value":"m82xbuhf-b0d0p09xk3h-0","text":"公章"}]
	 */
	@Column(name = "field_option")
	private String fieldOption;

	@Column(name = "parent_id")
	private Integer parentId;
}
